package com.youmans.dfsservice.client;

import com.youmans.common_utils.vo.UserForPic;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "service-user")
public interface UserInfoFeignClient {
    @GetMapping("/admin/user/findAll")
    List<UserForPic> findAll();

    @GetMapping("/admin/user/getUserIdByname")
    String getUserIdByname(@RequestParam("username") String username);

    @GetMapping("/admin/user/getIdByname")
    String getIdByname(@RequestParam("username") String username);
}